
#include <mockcpp/mockcpp.hpp>
#include <testngpp/testngpp.hpp>
#include <Rectangle.h>

USING_MOCKCPP_NS
USING_TESTNGPP_NS

FIXTURE(Rectangle)
{
	TEST(should be able to get the area:3*4=12)
	{
		Rectangle rect(3,4);
		ASSERT_EQ(12, rect.getArea());
	}

	TEST(should be able to get the perimeter:(3+4)*2=14)
	{
		Rectangle rect(3,4);
		ASSERT_EQ(14, rect.getPerimeter());
	}
};
